public class test {

    public static void main(String[] args) {
        Graph graph=new Graph(10);
        graph.insertVex("武汉", "黄鹤楼");
        graph.insertVex("福建", "鼓浪屿");
        graph.insertVex("咸宁", "桂花");
        graph.insertVex("麻城", "杜鹃山");
        graph.insertVex("黄梅", "黄梅戏");
        graph.insertVex("荆州", "关公像");
        graph.insertEdge(0, 1, 100, 5,"泽承大道");
        graph.insertEdge(0, 3, 5800, 10,"欢乐大道");
        graph.insertEdge(0, 4, 100, 4,"孙丹大道");
        graph.insertEdge(1, 2, 152, 3,"道恩大道");
        graph.insertEdge(1, 4, 500, 7,"物联大道");
        graph.insertEdge(2, 3, 250, 6,"少波大道");
        graph.insertEdge(3, 4, 100, 5,"新宇大道");
        graph.insertEdge(4, 5, 2400, 4,"鹤翔大道");
        graph.showv("福建");
        graph.showjdxx();
        // graph.upsetview("福建", "公道嗯");//改点已完成
        // graph.showv("福建");
        // System.out.println(graph.upsetvalue(0,1,2,10, "泽承大道")); //修改边已完成；
        // graph.deleteVex(0);//删点已经完成
        // graph.deleteEdge(0,1 );//删边已完成
        // graph.Floydjl();
        // graph.Floydsj();//最少时间完成
        // // System.out.println(graph.getEdge(0, 1));//得到边完成
        // graph.shownamejz();//输出名字矩阵
        // System.out.println();
        // graph.showtimejz();//输出时间矩阵
        // System.out.println();
        // graph.showjljz();//输出距离矩阵
    }
}